package com.gaolang.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gaolang.web.entities.Department;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gaolang
 * @since 2021-02-23
 */
@Repository
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 查询所有部分及部门人数
     * @return
     */
    List<Department> findDeptAndCount();

    /**
     * 所有部门及人数
     * @return
     */
    List<Department> departmentList();
}
